<%--
  Created by IntelliJ IDEA.
  User: pkczx
  Date: 2018/4/25
  Time: 23:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <title>用户列表</title>
</head>
<body>
<a href="index.jsp" >新增</a>

<FORM  action="${pageContext.request.contextPath }/user_getAll" method=post>
    <%--<input type="button" class="btn btn-primary" value="导出到Excel">--%>
    <table class="table table-striped">
        <thead>
            <tr>
                <th>编号</th>
                <th>昵称</th>
                <th>账号</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <s:iterator value="#list" var="user">
            <tr>
                <td><s:property value="#user.userId"/></td>
                <td><s:property value="#user.userCode"/></td>
                <td><s:property value="#user.userName"/></td>
                <td>
                    <a href="user_delete?userId=${user.userId}">删除</a>
                    <a href="user_update?userId=${user.userId}">修改</a>
                </td>

            </tr>
            </s:iterator>
        </tbody>
    </table>
</FORM>
</body>
</html>
